package org.finesys.system.api.feign;

import org.finesys.common.constants.ServerConstants;
import org.finesys.common.feign.annotation.NoToken;
import org.finesys.system.api.entity.SysLog;
import org.finesys.system.api.service.LogService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "logServiceApi", value = ServerConstants.SYSTEM_SERVER)
public interface LogServiceApi extends LogService {

    /**
     * 日志保存
     */
    @NoToken
    @PostMapping(value = "/log/add")
    void add(@RequestBody SysLog sysLog);

}
